﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GDIT.Model;

namespace GDIT
{
    public partial class ckeditorTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            //Mtb_InternalIP i = new Mtb_InternalIP();
            //i.IternalIPStart = "";
            //i.IternalIPEnd = "";
            //i.Save();
        //    Mtb_Roles role = new Mtb_Roles();
        //    Mtb_Department depart = new Mtb_Department();
        //    depart.DepartmentName = "学工";

        //    role.RoleName = "网站管理员";
        //    Mtb_Users user = new Mtb_Users();
        //    user.UserName = "admin";
        //    user.UserPwd = "admin";
        //    Mtb_BulletinArticle a = new Mtb_BulletinArticle();
        //    a.Title = "我去";
        //    a.Contents = "巴尔加罚款的减肥了扩大设计费";
        //    user.BulletinArticles.Add(a);
        //    Mtb_CollegeInformationArticle b = new Mtb_CollegeInformationArticle();
        //    b.Title = "内建军节";
        //    b.Contents = "将疯狂大家顺口溜发动机奥斯卡两地分居";
        //    user.CollegeInformationArticles.Add(b);
        //    role.Users.Add(user);
        //    depart.Users.Add(user);
        //    depart.Save();
        //    role.Save();

        //    Mtb_KeyWord k = new Mtb_KeyWord();
        //    k.AritlceKeyWord = "jkjk";
        //    k.Save();

            //Mtb_Counter c = new Mtb_Counter();
            //c.Counter = 0;
            //c.Save();

            //Mtb_MainMenus main = new Mtb_MainMenus();
            //main.MenuName = "学校概况";
            //main.LinkAddress = "";
            //Mtb_DetailMenus detail = new Mtb_DetailMenus();
            //detail.MenuName = "学校简介";
            //detail.LinkAddress = "";
            //main.Save();

            //Mtb_LinkType linkt = new Mtb_LinkType();
            //linkt.LinkTypeName = "部门链接";
            //Mtb_LinkInfo linki = new Mtb_LinkInfo();
            //linki.LinkName = "考试系统入口";
            //linki.LinkAddress = "";
            //linkt.Infos.Add(linki);
            //linkt.Save();

            //Mtb_Files f = new Mtb_Files();
            //f.FileName = "jjj";
            //f.Save();

            //Mtb_UserIPCounter user = new Mtb_UserIPCounter();
            //user.IPAddress = "";
            //user.Save();

            //Mtb_VideoInformationArticle v = new Mtb_VideoInformationArticle();
            //v.VideoName = "jf";
            //v.LinkAddress = "";
            //v.Save();

            //Mtb_PicType pt = new Mtb_PicType();
            //pt.TypeName = "重大信息";
            //Mtb_PicInfo pi = new Mtb_PicInfo();
            //pi.PicPath = "";
            //pi.LinkAddress = "";
            //pt.Infos.Add(pi);
            //pt.Save();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //Mtb_Users user = new Mtb_Users();
            //user.UserName = "xuchuang2";
            //user.UserPwd = "xuchuang2";
            //Mtb_BulletinArticle a = new Mtb_BulletinArticle();
            //a.Title = "清明放假";
            //a.Contents = "巴尔加罚款的减肥了扩大设计费";
            //Mtb_BullentinKeyWord bk = new Mtb_BullentinKeyWord ();
            //bk.AritlceKeyWord = "清明放假";
            //a.KeyWords.Add(bk);
            //Mtb_BullentinKeyWord bk1 = new Mtb_BullentinKeyWord();
            //bk.AritlceKeyWord = "放假";
            //a.KeyWords.Add(bk1);
            //user.BulletinArticles.Add(a);
            //Mtb_CollegeInformationArticle b = new Mtb_CollegeInformationArticle();
            //b.Title = "建军节";
            //b.Contents = "将疯狂大家顺口溜发动机奥斯卡两地分居";
            //Mtb_CollegeKeyWord ck = new Mtb_CollegeKeyWord();
            //ck.AritlceKeyWord = "建军节";
            //b.KeyWords.Add(ck);
            //user.CollegeInformationArticles.Add(b);
            //Mtb_SceneryPicInfo s = new Mtb_SceneryPicInfo();
            //s.Title = "丰州";

            //s.Save();
            //Mtb_CollegeInfo c = new Mtb_CollegeInfo();
            //c.Save();
        }
    }
}